Skip to content

New purple 2x ship; doubles points - #14

Merged
DanielGeek merged 1 commit into
mainfrom
opencode/issue13-20261123083330
Nov 23, 2026
Merged

DanielGeek merged 1 commit into
mainfrom
opencode/issue13-20261123083330

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Done. The new AMETHYST ship (6th skin, cycled via S) is purple, twice the size of the original, and doubles all points while active.

Changes in 89-OpenCode-Projects/03-asteroids:

  • game.js:369 — new AMETHYST skin: purple #a6f stroke/fill/flame, CLASSIC hull with scale: 2 and scoreMultiplier: 2
  • game.js:444 — Ship.radius is now a getter following the skin's scale, so the 2× ship also has a 2× hitbox (the trade-off for double points) and it updates live when skins are switched mid-game
  • game.js:478 — bullet spawn nose offset scales with the skin (42px instead of 21px)
  • game.js:493-499 — Ship.draw applies the skin's scale transform (stroke width compensated; flame and shield bubble scale proportionally); life icons stay uniform
  • game.js:704 — scoring multiplies by the active skin's scoreMultiplier (asteroids and shooting stars alike)
  • AGENTS.md / README.md — docs updated for the new skin, scale/multiplier semantics, and doubled score values

Verified with node --check plus a stubbed-DOM smoke test (/tmp/opencode/amethyst-smoke.js, 21 assertions, all passing) covering: skin load/persist via localStorage, 24 vs 12 hitbox, 42 vs 21 nose, 100→200 scoring, the 2× draw transform and toast, and live hitbox resize on skin change.

Closes #13

github run

Co-authored-by: DanielGeek <DanielGeek@users.noreply.github.com>
@opencode-agent opencode-agent Bot mentioned this pull request Nov 23, 2026
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
arcade-vault Ready Ready Preview Nov 23, 2026 8:40am UTC
python-projects Ready Ready Preview Nov 23, 2026 8:40am UTC

@DanielGeek
DanielGeek merged commit 2f297cf into main Nov 23, 2026
3 checks passed
@DanielGeek
DanielGeek deleted the opencode/issue13-20261123083330 branch November 23, 2026 08:44

This branch was successfully deployed

1 active deployment
Preview – python-projects — c4e6bb42 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

We need a new one.

1 participant